package com.mes.biz.service;

import com.mes.common.core.service.BaseService;
import com.mes.biz.domain.BizCustomer;

/**
 * 客户档案Service接口
 * @author hwg
 * @email hwg
 * @date 2023-04-30
 */
public interface BizCustomerService extends BaseService<BizCustomer> {

    /**
    * 校验客户名称的唯一性
    * @param bizCustomer 客户档案
    */
    public void checkCustomerNameUnique(BizCustomer bizCustomer);

    /**
     * 批量删除客户档案
     * @param ids 需要删除的客户档案ID集合
     * @return 结果
     */
    public int deleteBizCustomerByIds(String[] ids);


    public BizCustomer getCustomerByUserId(String userId);


}
